﻿using System;
using System.Data;
using System.Web.UI;

public partial class ltMan_ContentIndex : AdminBasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (CurrentUser.IsManager)
            {
                DataTable dt0 = new ltModel.BLL.article_content().GetList("sh=0").Tables[0];
                DataTable dt1 = new ltModel.BLL.message().GetList("zt=0").Tables[0];
                Literal1.Text = dt0.Rows.Count.ToString();
                Literal2.Text = dt1.Rows.Count.ToString();
                Repeater1.DataSource = dt0;
                Repeater1.DataBind();
                Repeater2.DataSource = dt1;
                Repeater2.DataBind();
            }
            else
            {
                RadDock1.Visible = RadDock2.Visible = false;
            }
        }
    }
}